package com.itheima.mall.service.cms;

import com.itheima.mall.api.cms.AreaServiceApi;
import com.itheima.mall.pojo.cms.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrefrenceAreaService {

    @DubboReference
    private AreaServiceApi areaServiceApi;


    public List<CmsPrefrenceArea> listAll() {
        //1、查询所有商品优选
        List<CmsPrefrenceArea> prefrenceAreas = areaServiceApi.listAll();
        return prefrenceAreas;
    }
}
